package com.java46.entity;

/**
 * @ClassName GenericResultEntity
 * @Description 返回结果实体类
 * @Author Tigger Wu
 * @Date 2018/8/1817:40
 * @Version 1.0
 **/

public class GenericResultEntity {
    // 当isSuccess值为true时给用户响应的数据封装在data
    // isSuccess值为false，将ExceptionInterceptor中捕捉到errorMessage的封装在此errorMessage属性
    private boolean isSuccess;
    private String errorMessage;
    private Object data;

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
